package com.petshop.inventoryentries.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.petshop.common.annotation.Excel;
import com.petshop.common.core.domain.BaseEntity;

/**
 * 商品入库信息对象 pet_inventoryentries
 * 
 * @author ruoyi
 * @date 2024-09-11
 */
public class PetInventoryentries extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 入库信息编号 */
    private Long inventoryEntryID;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String productName;

    /** 入库单价 */
    @Excel(name = "入库单价")
    private BigDecimal purchasePrice;

    /** 入库数量 */
    @Excel(name = "入库数量")
    private Long quantity;

    /** 备注 */
    @Excel(name = "备注")
    private String notes;

    /** 入库时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "入库时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date entryDate;

    public void setInventoryEntryID(Long inventoryEntryID) 
    {
        this.inventoryEntryID = inventoryEntryID;
    }

    public Long getInventoryEntryID() 
    {
        return inventoryEntryID;
    }
    public void setProductName(String productName) 
    {
        this.productName = productName;
    }

    public String getProductName() 
    {
        return productName;
    }
    public void setPurchasePrice(BigDecimal purchasePrice) 
    {
        this.purchasePrice = purchasePrice;
    }

    public BigDecimal getPurchasePrice() 
    {
        return purchasePrice;
    }
    public void setQuantity(Long quantity) 
    {
        this.quantity = quantity;
    }

    public Long getQuantity() 
    {
        return quantity;
    }
    public void setNotes(String notes) 
    {
        this.notes = notes;
    }

    public String getNotes() 
    {
        return notes;
    }
    public void setEntryDate(Date entryDate) 
    {
        this.entryDate = entryDate;
    }

    public Date getEntryDate() 
    {
        return entryDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("inventoryEntryID", getInventoryEntryID())
            .append("productName", getProductName())
            .append("purchasePrice", getPurchasePrice())
            .append("quantity", getQuantity())
            .append("notes", getNotes())
            .append("entryDate", getEntryDate())
            .toString();
    }
}
